import { defineStore } from "pinia";
import { getPersonInfo } from "@/api";
export const useMainStore = defineStore("main", {
  state: () => {
    return {
      showLogin: false,
      showRegister: false,
      siteInfo: {
        logo: "",
        name: "",
      },
    };
  },
  getters: {},
  actions: {
    openLogin() {
      this.showLogin = true;
    },
    hideLogin() {
      this.showLogin = false;
    },
  },
});
